//
//  ZSPSearchManager.h
//  ZSP_IOS
//
//  Created by Bruce on 2019/10/6.
//  Copyright © 2019 mlqk. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef void (^RCDSearchDataManagerBlock)(NSDictionary *dic, NSArray *array);

typedef NS_ENUM(NSInteger, ZSPSearchType) {
    ZSPSearchFriend = 0,
    ZSPSearchGroup,//搜索我的相关群组
    ZSPSearchZSPGroup,//搜索平台群组
    ZSPSearchChatHistory,//聊天记录
    ZSPSearchUSer,//平台用户
    ZSPSearchLocal,//本地通讯录
    ZSPSearchHome,//首页
    ZSPSearchAddressBook,//通讯录
    ZSPSearchAll,
};

#define ZSPSearchFriendString @"平台好友"
#define ZSPSearchUSerString @"平台用户"
#define ZSPSearchLocalString @"通讯录联系人"
#define ZSPSearchGroupString @"我的群组"
#define ZSPSearchZSPGroupString @"平台群组"
#define ZSPSearchChatHistoryString @"聊天记录"

@interface ZSPSearchManager : NSObject
+ (instancetype)shareInstance;
- (void)initData;

- (void)searchDataWithSearchText:(NSString *)searchText
                    bySearchType:(NSInteger)searchType
                        complete:(RCDSearchDataManagerBlock)result;
@end

NS_ASSUME_NONNULL_END
